package com.aaa.ps.service;

import com.aaa.common.entity.Users;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * fileName:IUserInfoService
 * description:
 * author:zz
 * createTime:2020/8/31 14:18
 * version:1.0.0
 */
@FeignClient(name = "ssoService")
public interface IUserInfoService {

    /**
     * 调用远程接口获取用户信息
     * @param accessToken
     * @return
     */
    @GetMapping("/login/getUserInfoByToken")
    Users  getByToken(@RequestParam("accessToken") String accessToken);
}
